<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.10/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h3>{{msg}}</h3>
        <p>{{count+1}}</p>
        <!-- 下面方式会照成死循环  -->
        <!-- 每次count++ 时数据会更改,并且视图会渲染之后数据又更改,视图再渲染,照成死循环 -->
        <p>{{count++}}</p>

    </div>
    <script>
        const vm = new Vue({
            el:"#app",
            data(){
                return{
                    msg:"you can you up , no can no bb",
                    count:1,
                }
            }
        })
    </script>
</body>
</html>